package com.edu.bhu.admin.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.edu.bhu.common.core.domain.entity.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 身体状况对象 pre_body
 * 
 * @author yutianyang
 * @date 2022-04-23
 */
public class PreBody extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 身体情况主键 */
    private Long bodyId;

    /** 状况描述 */
    @Excel(name = "状况描述")
    private String bcondition;

    /** 早晨体温 */
    @Excel(name = "早晨体温")
    private BigDecimal mTemperature;

    /** 中午体温 */
    @Excel(name = "中午体温")
    private BigDecimal nTemperature;

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date redate;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long userId;
    private SysUser sysUser;

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public void setBodyId(Long bodyId)
    {
        this.bodyId = bodyId;
    }

    public Long getBodyId() 
    {
        return bodyId;
    }

    public String getBcondition() {
        return bcondition;
    }

    public void setBcondition(String bcondition) {
        this.bcondition = bcondition;
    }

    public void setmTemperature(BigDecimal mTemperature)
    {
        this.mTemperature = mTemperature;
    }

    public BigDecimal getmTemperature() 
    {
        return mTemperature;
    }
    public void setnTemperature(BigDecimal nTemperature) 
    {
        this.nTemperature = nTemperature;
    }

    public BigDecimal getnTemperature() 
    {
        return nTemperature;
    }
    public void setRedate(Date redate) 
    {
        this.redate = redate;
    }

    public Date getRedate() 
    {
        return redate;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bodyId", getBodyId())
            .append("mTemperature", getmTemperature())
            .append("nTemperature", getnTemperature())
            .append("redate", getRedate())
            .append("userId", getUserId())
            .toString();
    }
}
